/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entities;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 *
 * @author Andrés Felipe
 */
public class CustomerRequest implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer idrequest;
    private Date creationdate;
    private List<RequestXproduct> requestXproductList;
    private Customer customeridentification;

    public CustomerRequest() {
    }

    public CustomerRequest(Integer idrequest) {
        this.idrequest = idrequest;
    }

    public CustomerRequest(Integer idrequest, Date creationdate) {
        this.idrequest = idrequest;
        this.creationdate = creationdate;
    }

    public Integer getIdrequest() {
        return idrequest;
    }

    public void setIdrequest(Integer idrequest) {
        this.idrequest = idrequest;
    }

    public Date getCreationdate() {
        return creationdate;
    }

    public void setCreationdate(Date creationdate) {
        this.creationdate = creationdate;
    }


    public List<RequestXproduct> getRequestXproductList() {
        return requestXproductList;
    }

    public void setRequestXproductList(List<RequestXproduct> requestXproductList) {
        this.requestXproductList = requestXproductList;
    }

    public Customer getCustomeridentification() {
        return customeridentification;
    }

    public void setCustomeridentification(Customer customeridentification) {
        this.customeridentification = customeridentification;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idrequest != null ? idrequest.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof CustomerRequest)) {
            return false;
        }
        CustomerRequest other = (CustomerRequest) object;
        if ((this.idrequest == null && other.idrequest != null) || (this.idrequest != null && !this.idrequest.equals(other.idrequest))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entities.CustomerRequest[ idrequest=" + idrequest + " ]";
    }
    
}
